<!DOCTYPE html>
<html manifest="cache.manifest">
<script src="js/cache.js"></script>
<script src="js/file.js"></script>
<script>

window.addEventListener('load', onload, false);

function onload(){
	startFS('network.class', 'application/x-class', done);
}



function done(){
	fileURL = getFileUrl('network.class', setApplet);
}
function setApplet(fileURL){
	alert(fileURL);
	document.getElementById('testing').innerHTML='<APPLET CODE="'+ fileURL + '" WIDTH=200 HEIGHT=50/>';
}

function check(){
	alert(document.jsapplet.checkWifi());
}

function getName(){
	alert(document.jsapplet.getName());
}

</script>
<body>


Here is the output of my program:


<div id="testing"></div>


<a onclick="check()">Check Wifi</a>
<a onclick="getName()">get Name</a>
</body>

</html>